package com.wang.springframework.test.bean;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wangjianhua
 * @Description
 * @date 2021/8/24/024 21:54
 */
public class UserDao {

    private static Map<String, String> hashMap = new HashMap<>();

    static {
        hashMap.put("10001", "tom");
        hashMap.put("10002", "betty");
        hashMap.put("10003", "faker");
    }

    public String queryUserName(String uId) {
        return hashMap.get(uId);
    }
}
